package com.woniuxy.commons.exception.userAccount;

public enum UserAccountExceptionCode {
    USER_NICKNAME_EXIST(3001,"该昵称已被使用"),
    USER_PHONECODE_EXIST(3002,"该手机号已被使用"),
    USER_USERNAME_OR_PHONECODE_EXIST(3005,"该用户名或手机号已被使用"),
    USER_YZM_1FEN(3003,"注册验证码必须间隔一分钟"),
    USER_YZM_DAY5(3004,"注册验证码一天内最多5条"),
    USER_YZM_ERROR(3006,"注册验证码一错误"),
    USER_PHONECODE_NOT_REGISTER(3007,"该手机号未注册"),
    USER_PASS_ERROR(3008,"密码错误"),
    USER_NOT_LOGIN(3009,"还未登录"),
    USER_STATE_ERROR(3010,"用户状态异常"),
    USER_STATE_YES(3013,"不能重复允许登录"),
    USER_NOT_EXIST(3011,"用户不存在"),
    USER_PWD_CANT_SAME(3012,"新旧密码不能一致"),

    ;
    private Integer code;
    private String message;

    UserAccountExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
